package com.limanyik.family.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.limanyik.family.common.entity.BasisRole;
import com.limanyik.family.security.entity.dto.UserInfoDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 基础_角色表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-11-24
 */
@Repository
public interface BasisRoleMapper extends BaseMapper<BasisRole> {

    /**
     * 根据用户id获取用户角色信息
     *
     * @param userInfoDto
     * @return
     */
    List<BasisRole> getUserRolesByUserId(@Param("reqDto") UserInfoDto userInfoDto);

}
